import { createStore } from 'vuex'
import persistedState from 'vuex-persistedstate'

export default createStore({
  state: {
    currentque:0,
    ifone:false,
    fourbtn1:-1,
    fourbtn:[false, false, false, false]
  },
  mutations: {
    setque(state,payload){
      state.currentque=payload
    },
    setone(state,payload){
      state.ifone=payload
    },
    setfourbtn1(state,payload){
      state.fourbtn1=payload
    },
    setfourbtn(state,payload){
      state.fourbtn=payload
    }
  },
  actions: {
  },
  modules: {
  },
  plugins: [persistedState()]
})
